Strict

Private

Public
	Import diddy
	Import testscreen
	Import cspriteline

'summary:Launch Point
Function Main:Int()
	
	diddyGame = New MyGame()
	'game.debugKeyOn = True
	diddyGame.drawFPSOn = True
	Return 1
End


Global TestScr:Screen = New TestScreen()		'Main Title Screen.

'summary:MyGame main game class.
Class MyGame Extends DiddyApp
	
	
	Method OnCreate:Int()
		Super.OnCreate()
		SetGraphics(640, 480)
		SetScreenSize(640, 480, True)

		LoadImages()
		LoadSounds()
		LoadFonts()
	
		diddyGame.Start(TestScr)
		Return 0
	End Method
	
	#rem
		summary: LoadImages
		This method also loads ALL game(index).png Atlas files in each of the games folders
		so if your using the packer, just pack and publish , then use the game.images.find()
		to actually get at your image.
	#END
	Method LoadImages:Void()
	
		'loading in the main apps atlas sheet.
		'game.images.LoadAtlas("sheet.txt", images.LIBGDX_ATLAS, true)

		diddyGame.images.Load("red_line.png", "", False, False)
		diddyGame.images.Load("red_line_start.png", "", False, False)
		diddyGame.images.Load("red_line_end.png", "", False, False)

		diddyGame.images.Load("green_line.png", "", False, False)
		diddyGame.images.Load("green_line_start.png", "", False, False)
		diddyGame.images.Load("green_line_end.png", "", False, False)
	End Method

	'summary:Load Game Fonts.
	Method LoadFonts:Void()
		'TitleFont = New BitmapFont2("fonts/monkey_18_h.txt", True)
	End Method
	
	'summary: load sounds.
	Method LoadSounds:Void()
		'game.sounds.Load("explode_01")
	End Method
	
End
